import request from "@/utils/request";

export function drawMob_drawAction(query) {
  //抽奖动作
  return request({
    url: "/drawMob/mobile/drawMob/drawAction",
    method: "post",
    params: query
  });
}

export function drawMob_findById(query) {
  //根据抽奖活动Id用户id查询Draw详情和用户抽奖次数与用户抽奖奖品
  return request({
    url: "/drawMob/mobile/drawMob/findById",
    method: "post",
    params: query
  });
}

export function drawMob_findDrawById(query) {
  //根据Id查询DrawItem
  return request({
    url: "/drawMob/mobile/drawMob/findDrawById",
    method: "post",
    params: query
  });
}

export function drawMob_getDrowMobBanners(query) {
  //查询全部Draw
  return request({
    url: "/drawMob/mobile/drawMob/list",
    method: "post",
    params: query
  });
}
// POST /api/mobile/drawMob/listMyDrowItem  我的奖品
export function listMyDrowItem(query) {
  //查询我的全部DrawRecord
  return request({
    url: "/drawMob/mobile/drawMob/listMyDrowItem",
    method: "post",
    params: query
  });
}

export function drawMob_listMyDrowAll(query) {
  //查询我的全部DrawRecord
  return request({
    url: "/drawMob/mobile/drawMob/listMyDrowAll",
    method: "post",
    params: query
  });
}

//POST /api/mobile/drawMob/listMyDrow
export function drawMob_listMyDrow(query) {
  //查询我的抽奖
  return request({
    url: "/drawMob/mobile/drawMob/listMyDrow",
    method: "post",
    params: query
  });
}
//  /api/mobile/drawMob/addReadNum  抽奖阅读
export function drawMob_addReadNum(query) {//一次浏览
         return request({
           url: "/drawMob/mobile/drawMob/addReadNum",
           method: "post",
           params: query
         });
       }
